<template>
	<view class="goods_list">
		<view class="goods_ltem" v-for="(item,index) in GoodsList" :key="index"  @click="Producttiaoz(item)">
			<image :src="item.cat_icon"></image>
			<view class="goods_price">
				<text class="goods_price_wan">￥{{item.cat_level}}</text>
				<text class="goods_price_to">￥{{item.cat_pid}}</text>
			</view>
			<view class="goods_name">{{item.cat_name}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:['GoodsList'],
		methods: {
			Producttiaoz(data){
				
				if(data.goods_id){
					uni.navigateTo({
					    url: '../product/product?id=' + data.goods_id
					});
				}
			}
		}
	}
</script>

<style scoped>
.goods_list{
		padding: 0 15rpx;
		background: #eee;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.goods_list .goods_ltem{
		background: #FFFFFF;
		width: 355rpx;
		margin: 10rpx 0;
		padding: 15rpx;
		box-sizing: border-box;
		
	}
	.goods_list .goods_ltem image{
		/* margin: 0 15rpx; */
		width: 100%;
		height: 240rpx;
	}
	.goods_price_wan{
		color: red;
		font-size: 30rpx;
	}
	.goods_price_to{
		font-size: 25rpx;
		color: #ccc;
		text-decoration:line-through;
		margin-left: 17rpx;
	}
	.goods_name{
		font-size: 28rpx;
		line-height: 45rpx;
	}
</style>
